﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcToolbox.WebTest.Models
{
    public class Users
    {
        public PagedList<User> UserList { get; set; }

        public Users(int startId) {
            UserList = new PagedList<User>(1, 50, 250);
            for (int i = 0; i < 20; i++)
            {
                UserList.Add(new User() { Id = i + 1 + (startId * 50), FirstName = "Jeff_" + i + (startId * 50), LastName = "LEQUEUX_" + i + (startId * 50), Birthday = DateTime.Now.AddYears(-(20 + i)), City = "Croissy" });
            }
        }
    }

    public class User
    {
        public int Id { get; set; }
        public string LastName { get; set; }
        public string FirstName { get; set; }
        public DateTime Birthday { get; set; }
        public string City { get; set; }
        public string Country { get; set; }
    }
}